<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								用户编号：<input type="text" name="id"/>
							</li>
							<li>
								账户类型：<select name="userType" th:with="type=${@dict.getType('pay_user_type')}">
								<option value="">所有</option>
								<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
							</select>
							</li>
							<li>
								用户账号：<input type="text" name="userLoginName"/>
							</li>
							<li>
								承兑商状态：<select name="accoutState" th:with="type=${@dict.getType('pay_accout_state')}">
								<option value="">所有</option>
								<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
							</select>
							</li>
							<li>
								是否接单：<select name="acceptState" th:with="type=${@dict.getType('pay_user_accpt_order')}">
								<option value="">所有</option>
								<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
							</select>
							</li>
							<li>
								姓名：<input type="text" name="realname"/>
							</li>
							<li>
								国家：<input type="text" name="country"/>
							</li>
							<li>
								实名认证状态：<select name="certState" th:with="type=${@dict.getType('pay_user_cert_state')}">
								<option value="">所有</option>
								<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
							</select>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="manager_user_edit">
					<i class="fa fa-edit"></i> 收款信息审核
				</a>
                <a class="btn btn-primary btn-edit disabled" onclick="$.operate.detail()" shiro:hasPermission="manager_user_detail">
                    <i class="fa fa-edit"></i> 详情
                </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('manager_user_edit')}]];
        var removeFlag = [[${@permission.hasPermi('manager_user_remove')}]];
        var prefix = ctx + "manager/user";
        var roleid = "user_account_auth";
        var userTypeDir = [[${@dict.getType('pay_user_type')}]];
        var accountStateDir = [[${@dict.getType('pay_accout_state')}]];
        var acceptStateDir = [[${@dict.getType('pay_user_accpt_order')}]];
        var certStateDir = [[${@dict.getType('pay_user_cert_state')}]];
        var zfbStateDir = [[${@dict.getType('pay_accout_zfb_state')}]];
        var wxStateDir = [[${@dict.getType('pay_accout_wx_state')}]];
        var yhkStateDir = [[${@dict.getType('pay_accout_yhk_state')}]];

        $(function() {
            var options = {
                url: prefix + "/list/"+roleid,
                createUrl: prefix + "/add/"+roleid,
                updateUrl: prefix + "/edit/"+roleid+"/{id}",
                authUrl: prefix + "/user_auth/{id}",
                resetPwdUrl: prefix + "/resetPwd/{id}",
                detailUrl: prefix + "/detail/"+roleid+"/{id}",
                removeUrl: prefix + "/remove/",
                exportUrl: prefix + "/export/"+roleid,
                modalName: "承兑商收款信息审核",
				search: false,
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '用户编号',
					visible: true
				},
				{
					field : 'userType', 
					title : '账户类型',
					sortable: false,
					formatter: function(value, row, index) {
		            	return $.table.selectDictLabel(userTypeDir, value);
		            }
				},
				{
					field : 'userLoginName', 
					title : '用户账号',
                    sortable: false
				},
				{
					field : 'accoutState', 
					title : '承兑商状态',
					sortable: true,
					formatter: function(value, row, index) {
		            	return $.table.selectDictLabel(accountStateDir, value);
		            }
				},
				{
					field : 'acceptState', 
					title : '是否接单',
					sortable: true,
					formatter: function(value, row, index) {
		            	return $.table.selectDictLabel(acceptStateDir, value);
		            }
				},
				{
					field : 'usdtQuota', 
					title : '额度',
                    sortable: false
				},
				{
					field : 'useQuota', 
					title : '使用额度',
                    sortable: false
				},
				{
					field : 'realname', 
					title : '姓名',
                    sortable: false
				},
			]
            };
            $.table.init(options);
        });

    </script>
</body>
</html>